package ch2;

public class PhoneTest {

	public static void main(String[] args) {
		HandlePhone m = new HandlePhone();
		m.brand = "华为";
		m.series = "荣耀10";
		m.money = 3999;

		Battery bt = new Battery();
		bt.brand = "飞毛腿";
		bt.color = "black";
		bt.cap = 10000;
		// 安装。。。
		m.b = bt;// !!!!!!!!!!!!!!!1
		m.showInfo();
		System.out.println("><<<<<<<<<<<<<<<<<<<");

		CellPhone cc = new CellPhone();
		cc.b.brand = "华为原装";
		cc.b.cap = 30000;
		cc.b.color = "灰";
		cc.brand = "华为";
		cc.series = "荣耀30";
		cc.money = 5999;
		cc.showInfo();
	}

}